import React,{lazy} from 'react'
const Layout = lazy(()=>import('../pages/Layout/Index.jsx'))
const Home = lazy(()=>import('../pages/Home/Index.jsx'))
const Login = lazy(()=>import('../pages/Login/Index.jsx'))
const My = lazy(()=>import('../pages/My/Index.jsx'))
const Regect = lazy(()=>import('../pages/regect/Index.jsx'))
const Detail = lazy(()=>import('../pages/Detail/index.jsx'))
const Message = lazy(()=>import('../pages/Message/Index.jsx'))
const Select = lazy(()=>import('../pages/SelSeat/index.jsx'))
const Order = lazy(()=>import('../pages/Order/index.jsx'))
const Success = lazy(()=>import('../pages/success/Index.jsx'))
export const zirouter=[
    {
        path:'/',
        title:'首页',
        element:<Home/>,
    },
    {
        path:'/my',
        title:'我的',
        element:<My/>,
    },
]

export const router=[
    {
        path:'/',
        element:<Layout/>,
        children:zirouter
    },
    {
        path:'/login',
        element:<Login/>,
    },
    {
        path:'/regect',
        element:<Regect/>,
    },
    {
        path:'/detail/:id',
        element:<Detail/>,
    },
    {
        path:'/message',
        element:<Message/>,
    },
    {
        path:'/selseat',
        element:<Select/>,
    },
    {
        path:'/order',
        element:<Order/>,
    },
    {
        path:'/success',
        element:<Success/>,
    },
]